# -*- coding: utf-8 -*-
from __future__ import unicode_literals

#列表主要功能就是增 删 改

namelist =  ["吴威振","吴杰","郭大胆","小学生"]

print("----添加之前的列表----")

for tempName in namelist:
	print(tempName)

#提示添加元素

temp = input("请输入要添加的学生的姓名：")

if temp in namelist:
	print("您输入的姓名已经存在")
else:
	namelist.append(temp)	
	
	print("----添加之后的列表----")

	for tempName in namelist:
		print(tempName)		



